package com.johnguo.carbondata_demo;

import org.apache.spark.SparkConf;
import org.apache.spark.SparkContext;
import org.apache.spark.sql.CarbonContext;
/**
 * Hello world!
 *
 */
public class App {
    public static void main( String[] args ) {
        SparkConf conf = new SparkConf();
        conf.setAppName("demo");
        SparkContext sc = new SparkContext(conf);
        CarbonContext cc = new CarbonContext(sc, "hdfs://master:9000/usr/cardata");
        cc.sql("show tables").show();
    }
}
